<script lang="ts" setup>
import Background from '@/component/Background/Background.vue'
import { useAccountStore } from '@/config/store/UseAccountStore.ts'
import { useGlobalProperties } from '@/tool/UseGlobalProperties.ts'

const globalProperties = useGlobalProperties()
const accountStore = useAccountStore()

if (accountStore.isLogin) {
    const service = globalProperties?.$application.accountSettingService
    service?.getGeneralSetting()
    service?.getBackgroundSetting()
}

</script>

<template>
<teleport to="body">
    <Background />
    <a-config-provider size="large">
        <router-view />
    </a-config-provider>
</teleport>
</template>

<style scoped>

</style>
